#include "namingdialog.h"

NamingDialog::NamingDialog(QWidget *parent) : QDialog(parent)
{
    setWindowTitle(tr("设置名称"));
    QFormLayout *layEdit = new QFormLayout();
    layEdit->addRow(infolab);
    layEdit->addRow(xlab,xEdit);
    layEdit->addRow(ylab,yEdit);
    auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
    layEdit->addWidget(buttonBox);
    connect(buttonBox, &QDialogButtonBox::accepted, this, &NamingDialog::accept);
    connect(buttonBox, &QDialogButtonBox::rejected, this, &NamingDialog::reject);
    setLayout(layEdit);
}
